command line options
Reported by Philipp Pirozhkov | November 28th, 2008 @ 02:05 PM
$ behave
FAIL A User instance should return its email address.
$ behave --show-passed
A User instance should return its full name.
FAIL: A User instance should return its email address.
A User instance with a profile should return true calling .has_profile?.
$ behave --html
2008-11-25.html created
$ behave --verbose
FAIL A User instance should return its email address: behave/models/user.re: 14
Suggested CLO:
-h, --html <file> : put output to a file in html format
-s, --show-passed : show passed tests too
-t, --trace : show trace
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Behave is a testing framework dedicated to test Reia language and libraries
== Usage
Behave.context('A User instance') do
setup do
user = User.find(~first)
should('return its full name') do
assert('John Doe' == user.full_name)
assert('John' == user.name)
assert('Doe' == user.surname)
should('return its email address') do
'JohnDoe@gmail.com' == user.email
context('with a profile') do
user.profile = Profile.find(~first)
should('return true calling .has_profile?') do
user.has_profile()